package com.ys.erp.entity.data.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author lwj
 * @date 2025/5/28
 */
    
@Data
@TableName(value = "t_event_log")
public class EventLog {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 店铺编码
     */
    @TableField(value = "shop_code")
    private String shopCode;

    /**
     * 操作员工
     */
    @TableField(value = "emp_id")
    private Long empId;

    /**
     * 员工姓名
     */
    @TableField(value = "emp_name")
    private String empName;

    /**
     * 事件
     */
    @TableField(value = "event_remark")
    private String eventRemark;

    @TableField(value = "req_param")
    private String reqParam;

    /**
     * 发生时间
     */
    @TableField(value = "`time`")
    private LocalDateTime time;

    /**
     * 发生相关信息的关联键
     */
    @TableField(value = "relevance_id")
    private Long relevanceId;

    /**
     * 是否重要敏感记录，0否1是
     */
    @TableField(value = "is_important")
    private Integer isImportant;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id")
    private Integer tenantId;

    /**
     * 二级租户id
     */
    @TableField(value = "tenant_two_id")
    private Integer tenantTwoId;

    @TableField(value = "version")
    @Version
    private Integer version;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_time", update = "now()")
    private LocalDateTime updateTime;
}